package pay.dao;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pay.entity.AuthenticatedGameDraftEntity;

import java.util.List;

@Mapper
public interface AuthenticatedGameDraftMapper extends BaseMapper<AuthenticatedGameDraftEntity> {

    List<AuthenticatedGameDraftEntity> selectByAuthenticatedId(Page<?> page, @Param("authenticatedId") Integer authenticatedId);

    List<AuthenticatedGameDraftEntity> selectByAuthenticatedIdAndStatusAndPublish(Page<?> page,
                                                                                  @Param("authenticatedId") Integer authenticatedId,
                                                                                  @Param("statusList") List<String> status,
                                                                                  @Param("isPublishedList") List<Integer> isPublishedList,
                                                                                  @Param("name") String name,
                                                                                  @Param("sportTypeList") List<String> sportTypeList,
                                                                                  @Param("authTypeList") List<Integer> authTypeList,
                                                                                  @Param("regionCode") String regionCode);

    AuthenticatedGameDraftEntity selectByActualId(@Param("actualId") Integer actualId);
}
